<template>
  <el-dialog title="查看流程图片" :visible.sync="dialogFormVisible" width="800px" @close="close" :close-on-click-modal="false" v-dialogDrag>
    <div>
      <el-image :src="url" style="winth: 100%"></el-image>
    </div>
  </el-dialog>
</template>

<script>
  import { serviceURL, baseURL } from '@/config'

  export default {
    name: 'ModelerImage',
    data() {
      return {
        dialogFormVisible: false,
        url: '#',
      }
    },
    created() {},
    methods: {
      showEdit(row) {
        this.url = window.origin + baseURL + '/image/' + row.id + '?ACCESS-TOKEN=' + this.$store.getters['user/accessToken']
        this.dialogFormVisible = true
      },
      close() {
        this.dialogFormVisible = false
      },
    },
  }
</script>

<style scoped>
  .dialog /deep/ .el-dialog__body {
    padding: 0px !important;
  }
</style>
